<template>
	<view class="home">
		<view class="bg-ff radius-40 bg-shadow padding-30 margin-bottom-40" v-for="(item,index) in list" :key="index"
			@click="go('/pages/my/feedbackdetail?id='+item.id)">
			<view class="flex align-center">
				<view class="text-28 text-bold">提交时间：</view>
				<view class="text-28 text-99 flex-one">{{item.createtime}}</view>
				<view class="text-28 text-66">详情 <text class="tyIcon-arrow-right text-24"></text> </view>
			</view>
			<view class="flex align-center margin-top-15">
				<view class="text-28 text-bold">游戏名称：</view>
				<view class="text-28 text-99 flex-one">{{item.game_name}}</view>
			</view>
			<view class="flex align-center margin-top-15">
				<view class="text-28 text-bold">想玩理由：</view>
				<view class="text-28 text-99 flex-one text-cut-one">{{item.feedback_text}}</view>
			</view>
			<view class="flex align-center margin-top-15 flex-wrap">
				<image :src="items" mode="" class="listimg" v-for="(items,indexs) in item.media_urls" :key="indexs">
				</image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			}
		},
		onReady() {
			this.loadList(1)
		},
		methods: {
			loadList(first_page) {
				this.rq.getList('wish/wish_list', {
					shop_id: uni.getStorageSync('store_id'),
				}, {
					that: this,
					first_page
				})
			},
		}
	}
</script>

<style>
	.home {
		width: 100%;
		min-height: 100vh;
		background: #fff;
		padding: 20rpx 30rpx;
	}

	.listimg {
		width: 112rpx;
		height: 112rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin: 0 22rpx 22rpx 0;
	}
</style>